<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=21903'>https://bugs.webkit.org/show_bug.cgi?id=21903</a>");

var input = document.createElement("input");

shouldBeEqualToString("input.placeholder", '');

input.setAttribute("placeholder", "p1")
shouldBeEqualToString("input.placeholder", 'p1');

input.placeholder = 'p2';
shouldBeEqualToString("input.getAttribute('placeholder')", 'p2');
shouldBeEqualToString("input.placeholder", 'p2');
</script>
</body>
</html>
